package cn.okcode.slowjson.ast;

import cn.okcode.slowjson.parser.Visitor;

/**
 * @author pyk13
 */
public class BoolNode extends AbstractNode<Boolean> {
    private final Boolean value;

    public BoolNode(Boolean value) {
        this.value = value;
    }

    @Override
    public Boolean getValue() {
        return value;
    }

    @Override
    public String stringValue() {
        return String.valueOf(value);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
